<?php
class TBB_View_Helper_Username extends Zend_View_Helper_Abstract
{
	public function username()
	{
		$username = "Không có";
		$auth = Zend_Auth::getInstance();
		if($auth->hasIdentity()) {
			$identity = $auth->getIdentity();
			$username = $identity->username; 
		}
		return $username;
	}
}